#include "article.h"

Article::Article(int number, double value, char description[20])
{
    m_number = number;
    m_value = value;
    strcpy_s(m_description, 20, description);
}

ostream & operator<<(ostream & os, const Article & article)
{
    os << "Article" << endl
       << "number: " << article.m_number << endl
       << "value: " << article.m_value << endl
       << "description: " << article.m_description << endl;
    return os;
}
